<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>地图显示系统</title>
    <meta name="description" content="实地图显示系统支持。">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" rel="stylesheet">
    <link href="styles.css" rel="stylesheet">
    <style>
        body {
            background-color: rgba(255, 255, 255, 0.8); /* 白色背景，透明度80% */
            margin: 0;
            padding: 0;
            font-family: Arial, sans-serif;
            background-image: url('DJI_0401.JPG'); /* 替换为你的背景图片路径 */
            background-size: cover;
            background-position: center;
        }
        .container {
            width: 80%;
            margin: 50px auto;
            background-color: rgba(255, 255, 255, 0.8); /* 白色背景，透明度80% */
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); /* 阴影效果 */
        }
        .container h1 {
            text-align: center;
            color: #333;
            font-size: 2.5em; /* 大标题字体 */
        }
        .container p {
            color: #333;
            line-height: 1.6;
        }
        .footer-image {
            width: 100%;
            height: auto;
            margin-top: 50px;
        }
    </style>
</head>
<body>
    <!-- 顶部导航栏 -->
    <nav class="navbar navbar-expand-lg navbar-dark bg-success">
        <div class="container-fluid">
            <a class="navbar-brand" href="#">
                <img src="paimeng.png" alt="Logo" width="30" height="30" class="d-inline-block align-text-top"> <!-- 替换为你的Logo路径 -->
                地图显示系统
            </a>
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav ms-auto">
                    <li class="nav-item">
                        <a class="nav-link" href="#map">地图展示</a>
                    </li>
                </ul>
            </div>
        </div>
    </nav>

    <!-- 地图展示 -->
    <section id="map" class="py-5">
        <div class="container">
            <h1>地图展示</h1>
            <div id="mapContainer" style="height: 600px;"></div>
        </div>
    </section>

    <!-- 底部横屏图片
    <div class="footer-image">
        <img src="DJI_0401.JPG" alt="Footer Image" style="width: 100%; height: auto;">
    </div> -->

    <!-- 底部信息 -->
    <footer class="bg-dark text-white text-center py-3">
        <p>&copy; 2025 地面站监测系统. 洋洋柚版权所有.</p>
    </footer>

    <!-- 引入JavaScript -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <script src="https://api.map.baidu.com/api?v=3.0&ak=L12fY5ciJl9Zjo2x2apBvbSVcvO0sYMa"></script>
    <script>
        // 初始化百度地图
        const map = new BMap.Map('mapContainer');
        const point = new BMap.Point(108.78055, 34.05138); // 默认坐标
        map.centerAndZoom(point, 13);
        map.addControl(new BMap.NavigationControl()); // 添加缩放控件

        // 模拟实时数据更新
        setInterval(updateData, 30000); // 每30秒更新一次数据

        function updateData() {
            // 模拟位置变化
            var location = new BMap.Point(118.636 + Math.random() * 0.01, 32.008 + Math.random() * 0.01);

            // 更新地图标记
            var marker = new BMap.Marker(location);
            map.addOverlay(marker);
            marker.setAnimation(BMAP_ANIMATION_BOUNCE); // 设置标记动画
        }
    </script>
</body>
</html>
